package se.mbaeumer.fxtodo.core.handler;

import java.util.List;

import se.mbaeumer.fxtodo.core.model.EnumTaskStatus;
import se.mbaeumer.fxtodo.core.model.TaskStatus;
import se.mbaeumer.fxtodo.db.DatabaseHandler;

public class TaskStatusHandler {
	
	private static final TaskStatusHandler INSTANCE = new TaskStatusHandler();
	private TaskStatusHandler(){};
	public static TaskStatusHandler getInstance(){return INSTANCE;}
	
	
	private List<TaskStatus> taskStatuses;
	public TaskStatus createTaskStatus(){
		return null;
	}
	
	public TaskStatus updateTaskStatus(){
		return null;
	}
	
	public void deleteTaskStatus(){
		
	}

	public List<TaskStatus> getTaskStatuses(DatabaseHandler dbh) {
		return dbh.getTaskStatuses();
	}

	public void setTaskStatuses(List<TaskStatus> taskStatuses) {
		this.taskStatuses = taskStatuses;
	}
	
	public int getStatusIdByTitle(DatabaseHandler dbh, String title){
		return dbh.getStatusIDByTitle(title);
	}
	
	public EnumTaskStatus getStatusById(DatabaseHandler dbh, int id){
		return dbh.getTaskStatusByID(id);
	}
}
